package com.bruce.pattern.behavioral.chain.demo1;

/**
 * Created by bruce on 2018/11/11 17:17
 */
public abstract class ChainHandler<T> {

    public final void execute(Chain<T> chain, T object) {
        handle(object);
        chain.process(object);
    }

    protected abstract void handle(T object);


}
